﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Domain.DAL;
namespace Domain.BLL
{
    public class CategoryBLL
    {
        public int CategoryID { get; set; }
        public string CategoryName { get; set; }
        public string Description { get; set; }

        public List<CategoryBLL> AllCategories { get; set; }

        public IEnumerable<CategoryBLL> ListAllCategories()
        {
            CategoryDAL _c = new CategoryDAL();
            return _c.ListAllCategories();
        }

        public void Read()
        {
            CategoryDAL _c = new CategoryDAL();
            AllCategories = _c.ListAllCategories();
        }
    }
}
